package com.morgan.recyclerviewdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.morgan.recyclerviewdemo.R
import com.morgan.recyclerviewdemo.entity.TimeLineData

/**
 *description：
 *<br>author：caowugao
 *<br>time：2020/8/24 0024 11:03
 */
class TimeLineAdapter : BaseQuickAdapter<TimeLineData, BaseViewHolder>(R.layout.item_time_line) {
    override fun convert(helper: BaseViewHolder, item: TimeLineData?) {
        item?.let {
            helper.setText(R.id.tv_text, it.text)
        }
    }

}